import java.awt.Image;
import javax.swing.ImageIcon;

public class Racer extends Component {
	
	double qValues[][][];
	double qHiddenValues[][][];
	double qTargetValues[][][];
	int tableSize;
	State nextState = null;
	State oldState = null;
	TemporalDifference temporal;
	int counter = 0;
	double total = 0;
	int which ;
	public Racer(){
		
	}
	public Racer(int tableSize,int which){
		this.tableSize = tableSize;
		this.which = which;
		qHiddenValues = new double[tableSize][tableSize][4];
		qTargetValues = new double[tableSize][tableSize][4];
		
		
		for(int i=0; i<tableSize; i++)
			for(int j=0; j<tableSize; j++)
				for(int k=0; k<4; k++){

				 qHiddenValues[i][j][k] = 0;
				 qTargetValues[i][j][k] = 0;
				 
				}
		image =new ImageIcon("picture/racer.png").getImage();
	
	}

	public Image getImage() {

		return image;

	}

}